<script setup>
import Summary from "../components/Summary.vue";
import TaskList from "../components/TaskList.vue";
import { useRouter } from 'vue-router'
var $router = useRouter() ;

var goadd = ()=>{
  $router.push('./add')
}
</script>

<template>
  <div class="home">
    <button @click="goadd">添加任务</button>
    <Summary />
    <TaskList />
  </div>
</template>
<style scoped>
button{
  padding: 10px;
  margin: 10px;
  background-color: aqua;
  border: none;
  color: red;
}
</style>
